import Vue from 'vue'
import VueRouter from 'vue-router'
import login from '../views/login'
import layout from '../views/layout'

Vue.use(VueRouter)


const routes = [
  {
    path: '/login',
    name: 'Login',
    component: login
  },
  {
    path:'/layout',
    name:'Layout',
    component:layout
  },
  {
    path:'/',
    redirect:'/login'
  }
]

const router = new VueRouter({
  routes
})

export default router
